package com.wecommodule.bpm.ext.biz.controller;


import com.wecommodule.bpm.ext.framework.common.entity.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@RestController
@RequestMapping("test008")
@Slf4j
@CrossOrigin
public class Test {

    @Resource
    RestTemplate restTemplate;

    @GetMapping()
    public ResponseResult<String> test(@RequestParam(required = false) String id) {
        log.info("调用接口成功！");
        return ResponseResult.successResponse("获取后端接口数据成功！！！");

    }


}
